package com.appspot.etao.service;

import java.util.List;

import javax.jdo.PersistenceManager;

import com.appspot.etao.jdo.PMF;
import com.appspot.etao.model.UserModel;

public class UserService extends BaseService {

	public List<UserModel> getUserList() {
		PersistenceManager pm = PMF.get().getPersistenceManager();
		
		String userQuery = "select from " + UserModel.class.getName();
		List<UserModel> userList = (List<UserModel>)pm.newQuery(userQuery).execute();
		
		pm.close();
		
		return userList;
	}
	
	public UserModel getUserByNick(String nick) {
		return null;
	}
}
